<?php Yii::app()->clientScript->registerScript('info',"
    var jobid='$job->jobid';
 
    ",CClientScript::POS_HEAD);?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/app/jobsdocuments.js',CClientScript::POS_BEGIN);?>

<div id="left-col">
    <?php 
    $this->renderPartial('/jobs/_side',array(
        'location'=>$job->location,
        'customer'=>$job->location->customer,
        'job'=>$job,
        'action'=>'document'
    ));
    
  
    ?>    
</div>

<div id="right-col">

    <div class="wrap">
        <div class="container">

            
            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">

                <?php $this->renderPartial('/jobs/_view',array(
                    'model'=>$job,
                ));?>
                
                <?php $this->renderPartial('/jobs/_tab',array(
                    'model'=>$job,
                ));?>

                <br/>
                    <iframe id="downloadFrame" src="" style="display:none;"></iframe>
                    <a href='javascript:void(0)' id="createJobDocument">Add Document</a>
                    <div id="document-list">
                        
                    </div>
              
            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('/copyright'); ?>
</div> <!-- left-col -->